package com.coocaa.x.framework.utils;

/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年6月28日         Root.Lu
 */

import com.coocaa.x.framework.app.CoocaaApplication;

public class AsyncTask {

    public static synchronized void runOnThread(Runnable r) {
        CoocaaApplication.post(r);
    }

    public static synchronized void runOnThread(Runnable r, boolean maxPriority) {
        runOnThread(r);
    }

    public static synchronized void runOnUiThread(Runnable r) {
        LiteHandlerThread.postOnUiThread(r);
    }

    public static synchronized void runOnUiThread(Runnable r, long delay) {
        LiteHandlerThread.postDelayedOnUiThread(r, delay);
    }
}
